#ifndef FUNCTION_H
#define FUNCTION_H

#include <QtCore>

class FuncParam
{
    public:
        FuncParam(QString name);
        QString name() const;
    private:
        QString _name;
};

class Function
{
    public:
        Function(QString name, QList<FuncParam> params);
        QString name() const;
        void setCode(QString code);
        QString code() const;
        QList<FuncParam> params() const;
        bool isRtnFunc() const;
        void setRtnFunction(bool s);
    private:
        bool rtnFunc;
        QString _name;
        QString _code;
        QList<FuncParam> _params;
};

class SysFunction : public Function
{
    public:
        SysFunction(QString name, QList<FuncParam> params);
};

#endif // FUNCTION_H
